<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="fmt" uri="http://www.springframework.org/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>




<!DOCTYPE html>
<!--[if IE 6 ]> <html class="ie6 lte_ie6 lte_ie7 lte_ie8 lte_ie9"> <![endif]-->
<!--[if lte IE 6 ]> <html class="lte_ie6 lte_ie7 lte_ie8 lte_ie9"> <![endif]-->
<!--[if lte IE 7 ]> <html class="lte_ie7 lte_ie8 lte_ie9"> <![endif]-->
<!--[if lte IE 8 ]> <html class="lte_ie8 lte_ie9"> <![endif]-->
<!--[if lte IE 9 ]> <html class="lte_ie9"> <![endif]-->
<!--[if (gte IE 10)|!(IE)]><!--><html><!--<![endif]-->
<head>
    <title>人事调动详细信息</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=10,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" type="text/css" href="/css/style.css" />
    <script type="text/javascript" src="/js/jquery/jquery-1.9.1.js"></script>
    <script src="/js/news/page.js"></script>
    <script src="/lib/laydate/laydate.js"></script>
    <script src="/js/base/base.js" type="text/javascript" charset="utf-8"></script>
    <script src="/lib/pagination/js/jquery.pagination.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/webOffice/fileShow.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" type="text/css" href="/css/news/new_news.css"/>

    <script type="text/javascript" >
        var MYOA_JS_SERVER = "";
        var MYOA_STATIC_SERVER = "";
    </script>
    <style>

        #rs {
            display: inline-block;
            float: left;
            width: 78px;
            height: 38px;
            line-height: 35px;
            /*  margin-right: 30px;*/
            margin-top: 20px;
            margin-bottom: 20px;
            cursor: pointer;
            border-radius: 3px;
            background: url(../../img/newReturn.png) no-repeat;
            padding-left: 19px;
            font-size: 14px;
            margin-left: 50%;

        }


    </style>


</head>


<%--<script type="text/javascript" src="/inc/js_lang.php"></script>--%>
<%--<script type="text/javascript" src="/static/js/attach.js"></script>--%>

<body class="bodycolor">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
    <tr>
        <td class="Big"><img src="../../img/contractinfo.png" width="17" height="17"><span class="big3">人事调动详细信息</span><br>
        </td>
    </tr>
</table>
<br>
<table class="TableBlock" width="90%" align="center">
    <tr>
        <td nowrap align="left" width="120" class="TableContent">调动人员：</td>
        <td nowrap align="left" class="TableData transferPerson" width="180"></td>
        <td nowrap align="left" width="120" class="TableContent">调动类型：</td>
        <td nowrap align="left" class="TableData transferType" width="180"></td>
    </tr>
    <tr>
        <td nowrap align="left" width="120" class="TableContent">调动日期：</td>
        <td nowrap align="left" class="TableData transferDate" width="180"></td>
        <td nowrap align="left" width="120" class="TableContent">调动生效日期：</td>
        <td nowrap align="left" class="TableData transferEffectiveDate" width="180"></td>
    </tr>
    <tr>
        <td nowrap align="left" width="120" class="TableContent">调动前单位：</td>
        <td nowrap align="left" class="TableData tranCompanyBefore" width="180"></td>
        <td nowrap align="left" width="120" class="TableContent">调动后单位：：</td>
        <td nowrap align="left" class="TableData tranCompanyAfter" width="180"></td>
    </tr>
    <tr>
        <td nowrap align="left" width="120" class="TableContent">调动前职务：</td>
        <td nowrap align="left" class="TableData tranPositionBefore" width="180"></td>
        <td nowrap align="left" width="120" class="TableContent">调动后职务：</td>
        <td nowrap align="left" class="TableData tranPositionAfter" width="180"></td>
    </tr>
    <tr>
        <td nowrap align="left" width="120" class="TableContent">调动前部门：</td>
        <td nowrap align="left" class="TableData tranDeptBefore" width="180"></td>
        <td nowrap align="left" width="120" class="TableContent">调动后部门：</td>
        <td nowrap align="left" class="TableData tranDeptAfter" width="180"></td>
    </tr>

    <tr>
        <td nowrap align="left" width="120" class="TableContent">调动手续办理：</td>
        <td colspan="4" nowrap align="left" class="TableData materialsCondition" width="180"></td>
    </tr>
    <tr>
        <td nowrap align="left" width="120" class="TableContent">备注：</td>
        <td colspan="4" nowrap align="left" class="TableData remark" width="180"></td>
    </tr>
    <tr>
        <td nowrap align="left" width="120" class="TableContent">附件：</td>
        <td colspan="4" nowrap align="left" class="TableData fujian" width="180"></td>
    </tr>

    <tr>
        <td nowrap align="left" width="120" class="TableContent">调动原因：</td>
        <td colspan="4" nowrap align="left" class="TableData tranReason" width="180"></td>
    </tr>

    <tr align="center" class="TableControl">
        <td colspan="4">
            <%--   <input type="button" value="关闭" class="BigButton" onClick="window.close();" title="关闭窗口">--%>
            <div id="rs" type="save" class="btn_return"><fmt:message code="notice.th.return" /></div>
        </td>
    </tr>
</table>
</body>
<script>
    $(function(){
        var id=$.getQueryString('transferId');
        $('#rs').click(function(){
            window.close();
        })
        $.ajax({
            url: "/hr/manage/selectBytransferIds",
            type: "get",
            data: {
                'transferId': id
            },
            dataType: 'json',
            success: function (obj) {
                var data=obj.object;
//                var arr = data.attachmentList;
                var str1=""
                <%--if (data != '') {--%>
                    <%--for (var i = 0; i < (data.length); i++) {--%>
                        <%--str1+='<div class="dech" deUrl="'+encodeURI(data[i].attUrl)+'" style="display:block;"><a class="ATTACH_a" NAME="'+data[i].attachmentName+'*" href="<%=basePath %>download?'+encodeURI(attachmentName[i].attUrl)+'">'+arr[i].attachName+'</a><input type="hidden" NAME="'+arr[i].attachName+'*"  class="inHidden" value="'+arr[i].aid+'@'+arr[i].ym+'_'+arr[i].attachId+',"></div>';--%>
                    <%--}--%>
                    <%--$('.fujian').append(str1);--%>
                <%--};--%>
//                if(data.staffName){
//                    $('.staffName').html(data.staffName);/*姓名*/
//                }else {
//                    var ll = '(<span style="color: red;">用户已删除</span>)'
//                    $('.staffName').html(ll);/*姓名*/
//                }
                $('.transferPerson').html(data.transferPersonName);
                $('.transferType').html(no(data.transferType));
                function no (d) {
                    switch (d) {
                        case '1':
                            return '晋升'
                            break;
                        case '2':
                            return '平调'
                            break;
                        case '3':
                            return '降级'
                            break;
                        case '4':
                            return '其他'
                            break;
                        default:
                            return '不存在'

                    }
                }
                $('.transferDate').html(data.transferDate);
                $('.transferEffectiveDate').html(data.transferEffectiveDate);
                $('.tranCompanyBefore').html(data.tranCompanyBefore);
                $('.tranCompanyAfter').html(data.tranCompanyAfter);
                $('.tranPositionBefore').html(data.tranPositionBefore);
                $('.tranPositionAfter').html(data.tranPositionAfter);
                $('.tranDeptBefore').html(data.tranDeptBefore);
                $('.tranDeptAfter').html(data.tranDeptAfter);
                $('.materialsCondition').html(data.materialsCondition);
                $('.remark').html(data.remark);
                $('.tranReason').html(data.tranReason);
                var arrList=data.attachmentList
                if(arrList.length>0){
                    attachmentShow(arrList,'1',$('.fujian'),'1');
                }

            }
        })
    })
</script>
</html>


